package com.htd.htdapmservice.service.impl;

import com.htd.htdapmdmo.LogAnalyzeErrorRecord;
import com.htd.htdapmservice.dao.LogAnalyzeErrorRecordDao;
import com.htd.htdapmservice.service.intf.LogAnalyzeErrorRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogAnalyzeErrorRecordImpl implements LogAnalyzeErrorRecordService{




    @Autowired
    private LogAnalyzeErrorRecordDao logAnalyzeErrorRecordDao;
    @Override
    public int insertLogAnalyzeErrorRecord(LogAnalyzeErrorRecord logAnalyzeErrorRecord) {
        int count =  logAnalyzeErrorRecordDao.insert(logAnalyzeErrorRecord);
        return count;
    }

    @Override
    public LogAnalyzeErrorRecord findLogAnalyzeErrorRecordById(int id) {
        return  logAnalyzeErrorRecordDao.findLogAnalyzeErrorRecordById(id);
    }
    @Override
    public List<LogAnalyzeErrorRecord> findLogAnalyzeErrorRecordList(String title){
        return  logAnalyzeErrorRecordDao.findLogAnalyzeErrorRecordList(title);
    }

    @Override
    public int batchInsertLog(List<LogAnalyzeErrorRecord> logAnalyzeErrorRecords) {
        return logAnalyzeErrorRecordDao.batchInsertLog(logAnalyzeErrorRecords);
    }
}
